/*
 * \file XmlDirectory.h
 *
 * \date Created on: Jan 25, 2009
 * \author sarah
 */

#ifndef XMLDIRECTORY_H_
#define XMLDIRECTORY_H_

#include <QDir>

#include "XmlPath.h"

class XmlDirectory
{
public:
    static const char *CHAR_DIR_NAME;
    static void setDataRootDir(const QDir &);

    XmlDirectory();
    virtual ~XmlDirectory();
    QDir dataRootDir() const;
    QDir dataDir(XmlPath::BaseTypes) const;
    QDir dataSubDir(const XmlPath &) const;
    bool isValid() const
    {
        return mRootDir != QDir() && mRootDir.exists();
    }
private:
    QDir mRootDir;
};

#endif /* XMLDIRECTORY_H_ */
